package com.example.demo.controller;

import com.example.demo.service.impl.CallTaskServerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author MarioZzz
 * @create 2023-08-02 18:23
 */
@RestController()
@RequestMapping("/client")
public class ClientController {

    @Resource
    private CallTaskServerService callTaskServerService;

    @GetMapping("/getAll")
    public Map<String, Object> getAllDsInfo() {
        return callTaskServerService.getRefreshHttpResponse(null).getBody();
    }
}
